{%widget list=$menu%}
<ul class="menu" id="menu">
{%foreach $list as $item%}
<li><a target="_blank" href="{%$item.href|escape:'html'|escape:'none'%}">{%$item.title%}</a></li>
{%/foreach%}
</ul>
<script type="text/javascript">
F.use(['tangram:base','./menu.js'], function(T, L){
    T.array.each(L, function(ele){
        T.event.on(ele.dom, 'click', function(){
            alert('open ' + ele.text + '(' + ele.link + ')');
        });
    });
});
</script>
{%/widget%}
